<?php
//namespace Main\Controller;
//use Think\Controller;
//class JurisdictionController extends AppController {
//
//    function __construct()
//    {
//        parent::__construct();
//        $this->M_package = M('Package');
//    }
//
//    public function index(){
//        $list = $this->M_package->select();
//        $this->assign('list',$list);
//        $this->display();
//    }
//
//    public function edit(){
//        $id = I('get.id',0,'intval');
//        $info = $this->M_package->find($id);
//        $jurisdiction = include_once('./jurisdiction.php');
//        $this->assign('jur',$jurisdiction);
//        $this->assign('info',$info);
//        if(IS_POST){
//            $this->M_package->package_name = I('post.package_name');
//            $jurisdictions = 'index,goods';
//            foreach(I('post.jurisdiction') as $v){
//                if($jurisdictions == ''){
//                    $jurisdictions = $v;
//                }else{
//                    $jurisdictions .= ','.$v;
//                }
//            }
//            $this->M_package->jurisdiction = $jurisdictions;
//            if($id){
//                $this->M_package->save()?die($this->success('修改成功！',U('index'))):die($this->error('修改失败！'));
//            }else{
//                $this->M_package->add()?die($this->success('添加成功！',U('index'))):die($this->error('添加失败！'));
//            }
//        }
//        $this->display();
//    }
//}